package me.ilich.piet.interpreter.commands;

import me.ilich.piet.interpreter.Stack;

public class PushCommand implements Command {
	
	private final int mValue;
	
	public PushCommand(int value) {
		mValue = value;
	}
	
	@Override
	public void onExecute(Stack.Context context) {
		context.getStackState().getData().add(Integer.valueOf(mValue));
	}

}